package com.yidu.qx.dao;

import com.yidu.qx.domain.QxCharacterEntity;
import com.yidu.qx.domain.QxModuleEntity;
import com.yidu.qx.domain.QxUserEntity;
import com.yidu.qx.utils.Pages;

import java.util.List;
import java.util.Map;

/**
 * 角色表dao
 */
public interface CharacterDao {

    void add(QxCharacterEntity qxCharacterEntity);

    void delete(QxCharacterEntity qxCharacterEntity);

    void update(QxCharacterEntity qxCharacterEntity);

    List<QxCharacterEntity> findAll(QxCharacterEntity qxCharacterEntity, Pages pages);

    QxCharacterEntity findById(String id);
    List<QxCharacterEntity> findAllone();
    /**
     * 总行数
     * @return
     */
    Long count(QxCharacterEntity qxCharacterEntity);

    Map<String,Object> index(QxUserEntity qxUserEntity);
}
